<?php

namespace App\Admin\Controllers;

use App\Admin\Forms\UserSetting;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\Dashboard;
use Encore\Admin\Layout\Column;
use Encore\Admin\Layout\Content;
use Encore\Admin\Layout\Row;

class HomeController extends Controller
{
    public function index(Content $content)
    {
       /* return $content
            ->title('sxxx')
            ->body(new UserSetting());*/


        return $content
            ->title('Dashboard')
            ->description('Description...')
            ->row(Dashboard::title())
            ->row(function (Row $row) {

                $row->column(4, function (Column $column) {
                    $column->append(Dashboard::environment());
                });

                $row->column(4, function (Column $column) {
                    $column->append(Dashboard::extensions());
                });

                $row->column(4, function (Column $column) {
                    $column->append(Dashboard::dependencies());
                });
            })
            ->row(function(Row $row) {
                $row->column(4, 'wbzz');
                $row->column(4, 'wuze');
                $row->column(4, function(Column $column) {
                    $column->row('123');
                    $column->row('123');
                    $column->row(function(Row $row) {
                        $row->column(4,'1111111111111');
                        $row->column(8,'1111111111111');
                    });
                });
            });
    }
}
